const db = wx.cloud.database()
const mine_db = db.collection('mine')

Page({
  data: {
    my_note: []
  },
  onLoad: function (options) {
    this._get_my_notes()
  },
  //获取数据库的我的笔记
  _get_my_notes: function () {
    mine_db.get({
      success: res => {
        console.log(res.data[1])
        this.setData({
          my_note: res.data
        })
      }
    })
  },
})